package com.example.denist.order.gui;

import com.example.denist.R;

import android.content.Context;
import android.graphics.Color;
import android.util.AttributeSet;
import android.view.Gravity;
import android.widget.Button;
import android.widget.TextView;

public class ReviewTextView extends TextView {

	

	static final Integer ALL_REVIEW = Integer.MAX_VALUE;
	static final Integer BAD_REVIEW = Integer.MAX_VALUE-1;
	static final Integer MIDDLE_REVIEW = Integer.MAX_VALUE-2;
	static final Integer GOOD_REVIEW = Integer.MAX_VALUE-3;
	
	
	private Integer review;
	
	
	public ReviewTextView(Context context) {
		super(context);
		init();
		
	}
	
	public ReviewTextView(Context context, AttributeSet attrs) {
		super(context, attrs);
		init();
	}
	
	public ReviewTextView(Context context, AttributeSet attrs, int defStyle) {
		super(context, attrs, defStyle);
		init();
	}
	
	
	private void init(){
		setPadding(0, 15, 0, 15);
		setTextSize(15);
		setGravity(Gravity.CENTER);
		setTextColor(Color.BLACK);
		setBackgroundResource(R.drawable.option_shape);
	}
	
	public Integer getReview() {
		return review;
	}

	public void setReview(Integer review) {
		this.review = review;
	}
}
